<div class="intellectworkresults form">
	<script>
    $(function() {
        $( ".datepicker" ).datepicker({ dateFormat: "yy-mm-dd" });
    });
    </script>
<h2>Добавление записи</h2>
<h5>Тип добавляемой записи <?php echo $recordtypes[$recordtype_id]; ?></h5>
<?php echo $this->Form->create('Intellectworkresult'); ?>
	<fieldset>
		<legend><?php echo __('Add Intellectworkresult'); ?></legend>
			<?php 
			echo $this->form->hidden('recordtype_id', array('value' => $recordtype_id));
			
			if ($recordtype_id == 1800) {
				//echo $this->Form->input('with_students', array('label' => '',  'disabled' => '1'));
				echo $this->Form->hidden('with_students', array('value' => ''));
			} else {
				echo $this->Form->hidden('with_students', array('value' => '1'));
				//echo $this->Form->input('with_students', array('label' => '', 'checked' => 'checked'));
			}
			
			
		?>	
<table width="100%" class="invisibletable">
  <tr>
    <td width="15%" align="right">Тип интеллектуальной деятельности</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('intellectworkresulttype_id', array('label' => '', 'empty' => 'Выберите тип детельности')); ?>

	</td>
  </tr>

  <tr>
    <td width="15%" align="right">Государственная регистрация и/или правовая охрана в РФ</td>
    <td width="2%" align="right">&nbsp;</td>
    <td width="45%"><?php echo $this->Form->input('is_russian_protection', array('label' => '')); ?>

	</td>
  </tr>
  <tr>
    <td width="15%" align="right">Правовая охрана за рубежом</td>
    <td width="2%" align="right">&nbsp;</td>
    <td width="45%"><?php echo $this->Form->input('is_foreign_protection', array('label' => '')); ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Название результатов интеллектуальной деятельности</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('intellectwork_name', array('label' => '')); ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Государственный регистрационный номер</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('regnumber', array('label' => ''));  ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Дата регистрации</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('regdate', array('label' =>'', 'class' => 'datepicker', 'type'=>'text', 'size' => 10)); ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Патентообладатель</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('patent_holder', array('label' => '')); ?></td>
  </tr>
</table>
	<?php 
		echo $this->Form->hidden('recstatus_id', array('value' => '1'));
	?>
	</fieldset>
	<br />
<?php echo $this->Form->end(__('Submit')); ?>
</div>				
